package Mangos::DB::Characters::GuildRank;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'guild_rank',

    columns => 
    [
        guildid         => { type => 'integer', not_null => 1 },
        rid             => { type => 'integer', not_null => 1 },
        rname           => { type => 'varchar', default => '', length => 255, not_null => 1 },
        rights          => { type => 'integer', default => '0', not_null => 1 },
        BankMoneyPerDay => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guildid', 'rid' ],
);

1;

package Mangos::DB::Characters::GuildRank::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::GuildRank' }

__PACKAGE__->make_manager_methods('guild_rank');

1;
